Manage templates
The PatientAccess CMS provides a default template that you can view and export. You can choose to use the default template, or you can copy the default template as a source and modify it. Even though the supplied default template functions correctly, we cannot safely update custom templates. Thus, when the default template is updated, you'll need to manually update changes in your customized template.
The ExanDefault template cannot be adapted or customized directly. If you want to customize this default template, you'll need to copy the template first.
Alternatively, you can create a new template, in which you enter your own code. For instructions on creating a new template, see Create a new template.
Note: You should manually update any customized templates when the ExanDefault template is updated.
To create a customized template:
The PatientAccess CMS displays the message: Are you sure?
- Click the OK button to copy the template.
A copy of the ExanDefault template is displayed. You can now begin adapting the template.
- In the Template Title box, enter a title. For example, we'll enter Dental Institution.
For example, we'll enter two custom fields (to enter an email address and a contact number).
The Custom1 placeholder is inserted into the template.
- After you've made your edits, click the Save button to save the new template.
- Click the Close button.
Now you'll attach a page to your new template. For this example, we'll select “New Page Example” that we'll attach to our example Dental Institution template.
- Click the Pages tab, and select a page. For example, we'll select New Page Example.
- From the Meta Information area, select the customized template. For example, we'll select the Dental Institution template.
For our example, we'll enter some text in the Custom1 and Custom2 fields. To do this:
- Click the Edit button next to the Custom1 field, and using the WYSIWYG editor, enter Email: dentalschool@uni.edu.
- Click the Edit button next to the Custom2 field, and enter Dental School Phone: 770-500-5000.
When you create a new template, the template has no code. You'll input your own HTML, Logic CSS, CSS, and JavaScript.
For instructions on copying the default template, see Create a customized template.
Note: You should manually update any customized templates when the ExanDefault template is updated.
To create a new template:
- On the Templates tab, click the New button to display the New Template page.
- In the Template Title box, enter a title.
- Click the Edit b in each of the code fields to enter your own code.
Tip: To help you build your template, you can select from a list of placeholders in the Replacement Area drop-down. There is also a place holder for the logged-in user, in the Replacement String drop-down. The system will replace these placeholders with the appropriate content when the page is rendered.
- Click the Save button when you've finished entering your code.
- Click the Close button to close the WYSIWYG editor.
To delete a customized template:
- On the Templates tab, select a template.
- Click the Delete button, twice.
This feature is included if you want to back up an existing template before making changes, or edit a template using an external text editor such as Notepad.
To export a template:
- On the Templates tab, select a template. For example, we'll select the Dental Institution template.
- Click the Export button next to one of the code types. For example, we'll select the Edit button next to the HTML code. In this example, the Dental_Institution.html is displayed in the lower-left corner of the page.
- Open with Notepad (or an HTML editor of your choice), and click OK.
- Drag the exported HTML code, and drop the code onto the opened Notepad area.
Now you can edit and save the changes.
- When you've finished editing the HTML, choose File, and then Save to save the new code.
- Click Close.
The PatientAccess CMS lets you use placeholder text (Custom1 to Custom5 fields) in customized templates that you can personalize in your pages. First you insert placeholder text in the HTML code, and then you replace the placeholder text with your own text.
To insert placeholder text in a customized template:
- In the Templates tab, select a customized template.
- In the Code area, click the Edit button next to the HTML code.
The Edit page appears.
- Click inside one of the divs in the HTML. For example, we'll click inside <div id-”mainColumn”> after <!--Main Content Replacement Area-->.
- From the Replacement Area drop-down list, select Custom1.
- Click the Insert button.
In this example, we've entered the placeholder text (Custom 1) beneath the main content area.
- Click the Savebutton.
- Click the Close button.
- On the Pages tab, select a page where you want to replace the placeholder text with your own text. For example, we'll select the New Page Example.
- Click the Edit button to the right of the Custom1 box to display the Content Editor page.
- Enter your text/images, as desired. For example, we'll enter a horizontal line, an image (using
Insert/edit image) and some centered text, using the Address style.
You can preview a template to view the styles and general structure of the pages to which a given template is attached.
To preview a template:
- On the Templates tab, click a template; for example, the ExanDefault template.
- Click the Preview button.
The page shows the hierarchy of headings (Header 1, Header 2, and Header 3), as well as the positioning of page elements on the page such as navigation and buttons.
- Click Close.
You can view any of the types of code in the template, such as the HTML, CSS, Logic CSS, or JavaScript.
To view the default template:
- On the Templates tab, click the ExanDefault template.
- In the Code area, click View next to a code type. For example, we'll click HTML View.
Note: This code cannot be edited. If you want to edit the code, you should copy the template. For instructions on copying the default template, see Create a customized template.
- Click the Close button to exit the page.